<template>
	<view>
		<view>
		
			<view class="allbody">
			
				<view class="title">全部筛选</view>
				<view class="choose1" @click="getoptions(list[0]),close()">学生部门</view>
				<view class="choose2" @click="getoptions(list[1]),close()">学生社团</view>
				<view class="choose3" @click="getoptions(list[2]),close()">其他</view>
				<view class="choose3" @click="getoptions(list[3]),close()">全部</view>
			<!-- </view> -->
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		name:"shaixuan_association",
		data() {
			return {
				list:['学生部门','学生社团','其他','全部'],
			};
		},
		methods:{
			close() {
				this.$emit("pclose",false)
			},
			getoptions(e){
				let that=this
				if(e=='全部'){
					uni.request({
						url:'https://www.codingyt.com/club/organization/select',
						success(res) {
							let data=res.data.data
							that.$emit('unpate_value1', data);
						}
					})
				}else{
					uni.request({
						url:'https://www.codingyt.com/club/organization/select',
						data:{
							type:e
						},
						success(res) {
							let data=res.data.data
							that.$emit('unpate_value1', data);
						}
					})
				}
						
				},
			}
		}
</script>

<style>
	.allbody{
		height: 520rpx;
	}
	.title{
		left: 296rpx;
		top: 36rpx;
		width: 160rpx;
		height: 130rpx;
		color: rgba(16, 16, 16, 100);
		font-size: 40rpx;
		text-align: left;
		position: relative;
	}
	.choose1{
		left: 0rpx;
		top: 0rpx;
		width: 750rpx;
		height: 96rpx;
		line-height: 96rpx;
		background-color: rgba(255, 255, 255, 100);
		color: rgba(65, 72, 77, 100);
		font-size: 36rpx;
		text-align: center;
		font-family: Arial;
		border: 2rpx solid rgba(187, 187, 187, 100);
		position: relative;
	}
	.choose2{
		left: 0rpx;
		top: 0rpx;
		width: 750rpx;
		height: 96rpx;
		line-height: 96rpx;
		background-color: rgba(255, 255, 255, 100);
		color: rgba(65, 72, 77, 100);
		font-size: 36rpx;
		text-align: center;
		font-family: Arial;
		border-bottom: 2rpx solid rgba(187, 187, 187, 100);
		position: relative;
	}
	.choose3{
		left: 0rpx;
		top: 0rpx;
		width: 750rpx;
		height: 96rpx;
		line-height: 96rpx;
		background-color: rgba(255, 255, 255, 100);
		color: rgba(65, 72, 77, 100);
		font-size: 36rpx;
		text-align: center;
		font-family: Arial;
		border-bottom: 2rpx solid rgba(187, 187, 187, 100);
		position: relative;
	}
</style>
